package com.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.math.BigDecimal;

/**
 * Created by he on 2025/3/3 19:46
 * 美发用品实体类
 */
public class Item extends BaseEntity {
    // 美发用品ID
    private int itemId;
    // 美发用品名称
    private String itemName;
    // 美发用品等级
    private String itemLevel;
    // 美发用品附加价格
    private BigDecimal itemPrice;
    // 美发用品图片
    private String itemImg;
    // 美发用品库存 0:需补充 1：充足
    @JSONField(serialize = false)
    private Integer inventory;

    public Item() {
    }

    public Item(int itemId, String itemName, String itemLevel, BigDecimal itemPrice, String itemImg, int inventory) {
        this.itemId = itemId;
        this.itemName = itemName;
        this.itemLevel = itemLevel;
        this.itemPrice = itemPrice;
        this.itemImg = itemImg;
        this.inventory = inventory;
    }

    public int getItemId() {
        return itemId;
    }

    public void setItemId(int itemId) {
        this.itemId = itemId;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public String getItemLevel() {
        return itemLevel;
    }

    public void setItemLevel(String itemLevel) {
        this.itemLevel = itemLevel;
    }

    public BigDecimal getItemPrice() {
        return itemPrice;
    }

    public void setItemPrice(BigDecimal itemPrice) {
        this.itemPrice = itemPrice;
    }

    public String getItemImg() {
        return itemImg;
    }

    public void setItemImg(String itemImg) {
        this.itemImg = itemImg;
    }

    public int getInventory() {
        return inventory;
    }

    public void setInventory(int inventory) {
        this.inventory = inventory;
    }

    @Override
    public String toString() {
        return "Item{" +
                "itemId=" + itemId +
                ", itemName='" + itemName + '\'' +
                ", itemLevel='" + itemLevel + '\'' +
                ", itemPrice=" + itemPrice +
                ", itemImg='" + itemImg + '\'' +
                ", inventory=" + inventory +
                '}';
    }
}
